//import createjs from "../../createjs"
import cjs=createjs
export default abstract class UIComponent extends cjs.Container{
    private _width=0
    private _height=0
    constructor(){
        super()
    }
    set width(value:number){
        this._width=value
        //this.reflush()
    }
    get width():number{
        return this._width
    }
    set height(value:number){
        this._height=value
        //this.reflush()
    }
    get height():number{
        return this._height
    }
    /**
     * 设置尺寸
     * @param w 
     * @param h 
     */
    setSize(w:number,h:number):void{
        this.width=w
        this.height=h
        this.reflush()
    }
    /**
     * 刷新界面
     */
    abstract reflush():void
}